package com.java.oop;

public class StudentTest {
    public static void main(String[] args) {
        //Student student1 = new Student();

        Student student1 = new Student("李志杰",22,"男");
        //使用set给属性赋值
        student1.setName("李志杰");
        student1.setAge(22);
        student1.setGender("男");
        //使用get调用属性的值
        System.out.println(student1.getName());
        student1.sayHi();
    }
}
